package com.kcl.dfss.xcamera;

public class XCamAlgoResult {
	enum LKP_Event {
		LKP_EVENT_ACTIVE(0), LKP_EVENT_SWIVEL1(0), LKP_EVENT_SWIVEL2(0), LKP_EVENT_LOWLKP(
				0), LKP_EVENT_NONE(-1);

		private int _value;

		private LKP_Event(int value) {
			_value = value;
		}

		public int value() {
			return _value;
		}

	}

	int cross[] = new int[2];
	float pitch_refined;
	float yaw_refined;
	public int lane_active[] = new int[2]; // 0 == deactive, 1 == active
	public int lane_warning_flag[] = new int[2]; // 0 == safe, 1 == departure; 2
													// == alarm
	public int warning_result; // 1 == right lane touched, -1 == left lane
								// touched, 0 == no contact
	char departure_left; // high while in the left warning zone
	char departure_right; // high while in the right warning zone
	int warning_coast;
	int departure_coast;
	boolean last_warning_left;
	boolean last_departure_left;
	int tlc_warning_coast;
	float L_Dis; // 左侧线距
	float R_Dis;
	float curvature;
	float heading_angle;

	int L_PointsX[] = new int[12];
	int L_PointsY[] = new int[12];
	int R_PointsX[] = new int[12];
	int R_PointsY[] = new int[12];

	int lane_type[] = new int[2]; // 道路线的类型

	LKP_Event lkp_event;// 车道保持能力的分析
	boolean is_drift;
	boolean is_dzone;
	boolean is_on;
	float lkp_count; // compare this value with system warning config 影响到是否是疲劳驾驶
	float std_offset;

	public boolean have_egolane_vehicle; // 0 == no vehicle, 1 == yes
	public int fcw_warning_level; // 0 == safe,蓝车(fcw_distance 米) 1 == too
									// close, 黄车 (fcw_distance 米)2 == alarm
									// 红车(fcw_ttc)
	public float fcw_distance;
	public float fcw_ttc;// in seconds
	float fcw_ttc_confidence;// useless
	int vehicle_count;// useless

	XCamFCWTarget fcw_target_list[] = new XCamFCWTarget[8];// useless

	public XCamAlgoResult(int[] laneActive, int[] laneWarningFlag,
			boolean haveCar, int warning_level, float fcwdistanc, float time) {
		lane_active = laneActive;
		lane_warning_flag = laneWarningFlag;
		have_egolane_vehicle = haveCar;
		fcw_warning_level = warning_level;
		fcw_distance = fcwdistanc;
		fcw_ttc = time;
	}
	public XCamAlgoResult(){
		
	}
}
